Skip to content

Fixes for issues #110 and #111#112

Merged
chris-steele merged 6 commits intomasterfrom
issue/adapt-register
Mar 19, 2019
Merged

Fixes for issues #110 and #111#112
chris-steele merged 6 commits intomasterfrom
issue/adapt-register

Conversation

@chris-steele
Copy link
Copy Markdown
Contributor

@moloko mind having a quick look/test and let me know who else might be a good candidate for verification?

@chris-steele chris-steele requested a review from moloko March 11, 2019 14:39
Comment thread lib/commands/register.js Outdated

renderer.log(chalk.yellow('This will publish this plugin to', Constants.Registry));

var c = semver.coerce(">=2.2");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used anywhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't. Removed it - thanks!

Comment thread lib/commands/register.js Outdated
pattern: /.+/,
type: 'string',
default: properties.repository || 'not specified',
default: properties.repository ? properties.repository.type : undefined,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor but is it worth defaulting to 'git' as it will be the most common and mean the user can just hit return again?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, further to that, since git is required according to the regex below can this user entry be removed and added automatically?

Copy link
Copy Markdown
Contributor Author

@chris-steele chris-steele Mar 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I wasn't clear on what was allowed for type/url. The spec isn't very explanatory: https://github.com/bower/spec/blob/master/json.md#repository. Shall we assume it must be of type git and a git:// protocol? Now that I think on, the underlying bower register command fails if you don't have a git:// protocol. So, propose we drop asking the user for a type and amend the regex to only allow git:// protocol; is that ok with you?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, sounds good to me

@chris-steele chris-steele merged commit 1bcd94a into master Mar 19, 2019
@chris-steele chris-steele deleted the issue/adapt-register branch March 19, 2019 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants